{{template "header.html"}}
<form action="{{if .Id}}updateProduct{{else}}addProduct{{end}}" method="POST">
	{{if .Id}}
	<input type="hidden" name="id" value="{{.Id}}"/>
	<label for="id">Id:</label>
	<input type="text" name="showid" disabled value="{{.Id}}"/><br/>
	{{end}}
	<label for="name">Name:</label>
	<input type="text" name="name" value="{{.Name}}"/><br/>
	<input type="submit" value="Save"/>
	<input type="submit" name="saveAndContinue" value="Save and continue editing"/>
	{{if .Id}}<a class="del" href="deleteProduct?id={{.Id}}">x</a>{{end}}
</form>